import Axios from "axios"

export default{
    namespaced:true,
    state:{
        classic:[],
    },
    mutations:{
        setClassic(state,payload){
            state.classic=payload;
        }
    },
    actions:{
        async requestClassicList(context){
            const {data} =await Axios.get('/data/classics.json');
            
            // console.log(data);
            context.commit('setClassic',data)
        }
    }
}